package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRI_T")
public class MmriT extends PO<MmriT> {

    private static final long serialVersionUID = 1L;

    private String MMRIENT;

    @TableId(value = "MMRIDOCNO", type = IdType.INPUT)
    private String MMRIDOCNO;

    private BigDecimal MMRISEQ;

    private String MMRI001;

    private BigDecimal MMRI002;
    private BigDecimal MMRI003;

    private LocalDate MMRI004;
    private String MMRI005;
    private String MMRI006;

    private String MMRI007;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRI008;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRI009;
    private LocalDate MMRI010;

    private String MMRIACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRIUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRIGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRIMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRITIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRIDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRIORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRIORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRIENT;
    }

}
